package com.codi.bus.core.service.impl;

import com.codi.bus.core.dao.FundWarehouseMappingDao;
import com.codi.bus.core.domain.FundWarehouseMapping;
import com.codi.bus.core.service.FundWarehouseMappingService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FundWarehouseMappingServiceImpl implements FundWarehouseMappingService{
    @Resource
    private FundWarehouseMappingDao fundWarehouseMappingDao;

    @Override
    public int addMapping(FundWarehouseMapping mapping) {
        return fundWarehouseMappingDao.addMapping(mapping);
    }

    @Override
    public int deleteMapping(Long mappingId) {
        return fundWarehouseMappingDao.deleteMapping(mappingId);
    }

    @Override
    public int updateMapping(FundWarehouseMapping mapping) {
        return fundWarehouseMappingDao.updateMapping(mapping);
    }

    @Override
    public List<FundWarehouseMapping> queryByWareHouseId(Long warehouseId) {
        return fundWarehouseMappingDao.queryByWareHouseId(warehouseId);
    }

    @Override
    public FundWarehouseMapping queryOne(Long wareHouseId) {
        return fundWarehouseMappingDao.queryOne(wareHouseId);
    }
}
